<template>
  <div class="logo">
    <router-link :to="{name:addRouters[0].name}">
      <img alt="梁溪区社会工作部基础信息平台" style="width: 50px; height: 50px" src="../../assets/logo-global.png">
      <h1 v-if="showTitle">{{ title }}</h1>
    </router-link>
  </div>
</template>

<script>
// import LogoSvg from '@/assets/logo-global.png?inline'
import { mapGetters } from 'vuex'
export default {
  name: 'Logo',
  components: {
    // LogoSvg
  },
  props: {
    title: {
      type: String,
      default: '梁溪区社会工作部基础信息平台',
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    }
  },
  computed: {
    ...mapGetters(['addRouters', 'token'])
  }
}
</script>
